//
//  OBJ_CViewController.m
//  GUI Calculator
//
//  Created by Charles William Bootle on 6/25/13.
//  Copyright (c) 2013 WB Indutsries, LLC. All rights reserved.
//

#import "OBJ_CViewController.h"

@interface OBJ_CViewController ()

@end

@implementation OBJ_CViewController
-(IBAction)getNumber:(id)sender{
    if ((float)[sender tag] == 10) {
        [Answer setText:[NSString stringWithFormat:@""]];
        number = 0;
    }
    else{
        input = (float)[sender tag];
        number = (number * 10) + input;
        [Answer setText:[NSString stringWithFormat:@"%f", number]];
    }

    
}
- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
